import { network } from '@/utils';
import { TableListParams, RescissionParams } from './data.d';

import { partner } from '../../../../../config/Apis';

export async function queryContractList(params: TableListParams) {
  params._content_type = 'json';
  return network.get(partner.contract_posthouse_list, {
    params,
  });
}

export async function RescissionPosthouseContract(params: RescissionParams) {
  return network.get(partner.contract_posthouse_terminate, {
    params,
  });
}
